Skip to content

Enable log content lookup on API key usage page - #886

Open
Transparent0 wants to merge 1 commit into
kittors:mainfrom
Transparent0:agent/apikey-usage-log-content
Open

Enable log content lookup on API key usage page#886
Transparent0 wants to merge 1 commit into
kittors:mainfrom
Transparent0:agent/apikey-usage-log-content

Conversation

@Transparent0

Copy link
Copy Markdown

What changed

  • make stored input/output token counts clickable on /manage/apikey-usage
  • reuse the existing log content modal for formatted and raw content views
  • fetch content through the existing public API-key-scoped endpoint
  • close any open content modal when the active key is cleared

Why

The API key usage page already lists logs with stored content, and the backend already exposes a key-scoped content endpoint, but the page did not connect those existing pieces. Users therefore could not inspect their own request input/output from the page.

This keeps the existing backend authorization boundary: the presented API key must own the requested log. Management-only request details are not exposed.

Validation

  • API key usage page tests: 3 passed
  • lint, design token, import boundary, file size, dependency audit, production build, and bundle budget checks passed
  • full test run: 1015 passed; one unrelated existing ConfigPage payload-rules test failed (this PR does not modify config code)

@Transparent0
Transparent0 marked this pull request as ready for review August 4, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant